package org.firecloud.h5fun.model.javabean;

import java.util.Date;

public class ProjectBean {
	/**
	 * 项目ID
	 */
	private int id;
	/**
	 * 项目所属栏目ID
	 */
	private byte columnId;
	/**
	 * 是否原创
	 */
	private boolean isOriginal;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 封面图片文件名
	 */
	private String imageFileName;
	/**
	 * 简介内容
	 */
	private String context;
	/**
	 * 转载框架URL，原创Apps目录名
	 */
	private String iframeUrl;
	/**
	 *转载原URL
	 */
	private String originalUrl;
	/**
	 * 项目产生时间
	 */
	private Date createTime;
	/**
	 * 项目点击数
	 */
	private int click;
	/**
	 * 项目评论数
	 */
	private int commentary;
	
	/**
	 * 项目是否可DIY
	 */
	private boolean isCreateApp;
	
	public boolean isCreateApp() {
		return isCreateApp;
	}

	public void setCreateApp(boolean isCreateApp) {
		this.isCreateApp = isCreateApp;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public int getCommentary() {
		return commentary;
	}

	public void setCommentary(int commentary) {
		this.commentary = commentary;
	}

	public int getClick() {
		return click;
	}

	public void setClick(int click) {
		this.click = click;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public byte getColumnId() {
		return columnId;
	}

	public void setColumnId(byte columnId) {
		this.columnId = columnId;
	}

	public boolean isOriginal() {
		return isOriginal;
	}

	public void setOriginal(boolean isOriginal) {
		this.isOriginal = isOriginal;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImageFileName() {
		return imageFileName;
	}

	public void setImageFileName(String imageFileName) {
		this.imageFileName = imageFileName;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public String getIframeUrl() {
		return iframeUrl;
	}

	public void setIframeUrl(String iframeUrl) {
		this.iframeUrl = iframeUrl;
	}

	public String getOriginalUrl() {
		return originalUrl;
	}

	public void setOriginalUrl(String originalUrl) {
		this.originalUrl = originalUrl;
	}

	@Override
	public String toString() {
		return "ProjectBean [id=" + id + ", columnId=" + columnId + ", isOriginal=" + isOriginal + ", title=" + title
				+ ", imageFileName=" + imageFileName + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProjectBean other = (ProjectBean) obj;
		if (id != other.id)
			return false;
		return true;
	}
}
